﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace cap_demo.Domain.Abstractions
{
    /// <summary>
    /// 实体接口
    /// </summary>
    public interface IEntity
    {
        /// <summary>
        /// 获取实体主键属性数组
        /// </summary>
        /// <returns></returns>
        object[] GetKeys();
    }


    /// <summary>
    /// 实体泛型接口
    /// </summary>
    /// <typeparam name="TKey">主键ID类型</typeparam>
    public interface IEntity<TKey> : IEntity 
    {
        TKey Id { get; }
    }
}
